package com.itheima.overload;

public class MethodDemo {
    public static void main(String[] args) {
        fire();
        fire("岛国");
        fire("米国", 1000);

    }

    /**
      默认发射一枚
     */
    public static void fire(){
        System.out.println("默认发射一枚给米国~~~");
    }

    /**
     发射一枚给某个地区
     */
    public static void fire(String location){
        System.out.println("发射一枚给"+ location +"~~~");
    }

    /**
     发射多枚给某个地区
     */
    public static void fire(String location, int nums){
        System.out.println("发射"+ nums +"枚给"+ location +"~~~");
    }
}
